package com.qf02;

public class TestTicket {
    public static void main(String[] args) {
        Ticket ticket=new Ticket();
        Thread w1 = new Thread(ticket, "窗口1");
        Thread w2 = new Thread(ticket, "窗口2");
        Thread w3 = new Thread(ticket, "窗口3");
        Thread w4 = new Thread(ticket, "窗口4");

        w1.start();
        w2.start();
        w3.start();
        w4.start();
    }
}
